package org.example.springtrans.enums;

public enum Isolation {
    DEFAULT(-1), // default 是 可重复读
    READ_UNCOMMITTED(1), // read uncommitted 读未提交
    READ_COMMITTED(2), // read committed 读已提交
    REPEATABLE_READ(4),// repeatable read 可重复读
    SERIALIZABLE(8); // serializable 串行化
    private final int value;
    private Isolation(int value) {
        this.value = value;
    }
    public int value() {
        return this.value;
    }
}
